/*
 * @FilePath: /reacte-template/src/store/account.ts
 * @Descripttion: 
 * @version: 1.0.0
 * @Author: lijinshen
 * @Date: 2024-05-16 20:22:00
 * @LastEditors: lijinshen
 * @LastEditTime: 2024-05-16 20:23:28
 */
import { create } from 'zustand'
import { combine } from 'zustand/middleware'

const useBearStore = create(
  combine({ bears: 0 }, (set) => ({
    increase: (by: number) => set((state) => ({ bears: state.bears + by })),
  })),
)
export default useBearStore;